<?php
/**
 * Created by PhpStorm.
 * User: Da Xiong
 * Date: 2018/12/3
 * Time: 11:24
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class Counts extends Model
{

    protected $table = 'counts';
    protected $fillable = [
        'id', 'pid', 'name'
    ];
    public $timestamps = false;

    public function countLog(){
        return $this->hasMany('App\Models\CountsLog', 'cid', 'id');
    }
    public function countlogpid(){
        return $this->hasMany('App\Models\CountsLog', 'pid', 'id');
    }
}